import request from "./request.js";

// 微信登录，获取微信openid
export function onGetWxOpenid(params) {
	return request.get('/auth/wx/authorization', params)
}

// 获取手机号并登录
export function onGetWxPhoneNumber(params) {
	return request.post('/auth/wx/login', params)
}

// 获取用户信息
export function onGetUserInfo(params) {
	return request.get('/system/user/getInfo', params)
}

// 获取用户角色信息
export function onGetUserRoles(id) {
	return request.get(`/system/user/authRole/${id}`)
}

// 获取部门任务
export function onGetTask(params) {
	return request.get('/system/task/list', params)
}

// 获取部门详情
export function onGetTaskDetails(id) {
	return request.get(`/system/task/detail/${id}`)
}